<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>提现管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/withdraw/payCashWithdrawCheck/">提现管理列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="payCashWithdraw" action="${ctx}/withdraw/payCashWithdrawCheck/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li>
				<label>用户编号：</label>
				<form:input path="userId" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li>
				<label>用户名：</label>
				<form:input path="retCode" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li>
				<label>姓名：</label>
				<form:input path="msg" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>编号</th>
				<th>用户编号</th>
				<th>用户名</th>
				<th>姓名</th>
				<th>流水号</th>
				<th>提现金额</th>
				<th>用户手续费</th>
				<th>提现账号</th>
				<th>审核状态</th>
				<th>出款状态</th>
				<th>清算日期</th>
				<th>审核人</th>
				<th>备注</th>
				<th>审核时间</th>
				<shiro:hasPermission name="withdraw:payCashWithdrawCheck:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="payCashWithdrawCheck" varStatus="s">
			<tr>
				<td>${s.index + 1}</td>
				<td>${payCashWithdrawCheck.userId}</td>
				<td>${payCashWithdrawCheck.retCode}</td>
				<td>${payCashWithdrawCheck.msg}</td>
				<td>${payCashWithdrawCheck.orderId}</td>
				<td>${payCashWithdrawCheck.amount}</td>
				<td>${payCashWithdrawCheck.userFee}</td>
				<td>${payCashWithdrawCheck.cardNo}</td>
				<td>${payCashWithdrawCheck.checkStatus == 0?"未审核":payCashWithdrawCheck.checkStatus == 1?"审核通过":payCashWithdrawCheck.checkStatus == 2?"审核失败":""}</td>
				<td>${payCashWithdrawCheck.status == 0?"未处理":payCashWithdrawCheck.status == 1?"成功":payCashWithdrawCheck.status == 2?"等待回调":payCashWithdrawCheck.status == 3?"失败":payCashWithdrawCheck.status == 4?"异常情况":""}</td>
				<td>${payCashWithdrawCheck.settleDate}</td>
				<td>${payCashWithdrawCheck.checkUesrId}</td>
				<td>${payCashWithdrawCheck.remark}</td>
				<td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${payCashWithdrawCheck.checkTime}"></fmt:formatDate></td>
				<td>
					<c:if test="${payCashWithdrawCheck.checkStatus != 1}">
						<shiro:hasPermission name="withdraw:payCashWithdrawCheck:edit">
							<a href="${ctx}/withdraw/payCashWithdrawCheck/form?id=${payCashWithdrawCheck.id}">修改</a>
						</shiro:hasPermission>
					</c:if>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>